/** 当您的路由表太长时，您可以将其拆分为小模块**/

import Layout from '@/layout'

const componentsRouter = {
  path: '/course',
  component: Layout,
  redirect: '/course/list',
  name: '番剧管理',
  meta: {
    title: '番剧管理',
    icon: 'component'
  },
    children: [
      {
        path: 'list',
        component: () => import('@/views/course/list'),
        name: '番剧列表',
        meta: { title: '番剧列表' }
      },
      {
        path: 'info',
        component: () => import('@/views/course/info'),
        name: '番剧信息',
        meta: { title: '番剧信息' }
      },
    {
      path: 'chapter',
      component: () => import('@/views/course/chapter'),
      name: '番剧章节',
      meta: { title: '番剧章节' }
    },
    {
      path: 'publish',
      component: () => import('@/views/course/publish'),
      name: '添加番剧',
      meta: { title: '添加番剧' }
    },
    {
      path: 'info/:id',
      component: () => import('@/views/course/info'),
      name: '番剧信息',
      meta: { title: '番剧信息' },
      hidden:true
    },
  {
    path: 'chapter/:id',
    component: () => import('@/views/course/chapter'),
    name: '番剧章节',
    meta: { title: '番剧章节' },
    hidden:true
  },
  {
    path: 'publish/:id',
    component: () => import('@/views/course/publish'),
    name: '添加番剧',
    meta: { title: '添加番剧' },
    hidden:true
  },
  // path: '/components',
  // component: Layout,
  // redirect: 'noRedirect',
  // name: 'ComponentDemo',
  // meta: {
  //   title: 'Components',
  //   icon: 'component'
  // },
  // children: [
  //********************tinymce富文本编辑器*************
  //   {
  //     path: 'tinymce',
  //     component: () => import('@/views/components-demo/tinymce'),
  //     name: 'TinymceDemo',
  //     meta: { title: 'Tinymce' }
  //   },
  //********************文本到HTML的转换工具*************
//     {
//       path: 'markdown',
//       component: () => import('@/views/components-demo/markdown'),
//       name: 'MarkdownDemo',
//       meta: { title: 'Markdown' }
//     },
//********************生成Html表单来对JSON进行编辑*************
//     {
//       path: 'json-editor',
//       component: () => import('@/views/components-demo/json-editor'),
//       name: 'JsonEditorDemo',
//       meta: { title: 'JSON Editor' }
//     },对窗口进行拆分
//********************对窗口进行拆分*************
//     {
//       path: 'split-pane',
//       component: () => import('@/views/components-demo/split-pane'),
//       name: 'SplitpaneDemo',
//       meta: { title: 'SplitPane' }
//     },
//********************头像上传*************
//     {
//       path: 'avatar-upload',
//       component: () => import('@/views/components-demo/avatar-upload'),
//       name: 'AvatarUploadDemo',
//       meta: { title: 'Upload' }
//     },
//********************文件上传插件上传*************
//     {
//       path: 'dropzone',
//       component: () => import('@/views/components-demo/dropzone'),
//       name: 'DropzoneDemo',
//       meta: { title: 'Dropzone' }
//     },
//********************粘性布局组件*************
//     {
//       path: 'sticky',
//       component: () => import('@/views/components-demo/sticky'),
//       name: 'StickyDemo',
//       meta: { title: 'Sticky' }
//     },
//********************数字滚动插件*************
//     {
//       path: 'count-to',
//       component: () => import('@/views/components-demo/count-to'),
//       name: 'CountToDemo',
//       meta: { title: 'Count To' }
//     },
//********************混入*************
//     {
//       path: 'mixin',
//       component: () => import('@/views/components-demo/mixin'),
//       name: 'ComponentMixinDemo',
//       meta: { title: 'Component Mixin' }
//     },
//********************返回顶部*************
//     {
//       path: 'back-to-top',
//       component: () => import('@/views/components-demo/back-to-top'),
//       name: 'BackToTopDemo',
//       meta: { title: 'Back To Top' }
//     },
//********************拖拽功能*************
//     {
//       path: 'drag-dialog',
//       component: () => import('@/views/components-demo/drag-dialog'),
//       name: 'DragDialogDemo',
//       meta: { title: 'Drag Dialog' }
//     },
//********************列表拖拽选择*************
//     {
//       path: 'drag-select',
//       component: () => import('@/views/components-demo/drag-select'),
//       name: 'DragSelectDemo',
//       meta: { title: 'Drag Select' }
//     },列表实现拖拽排序
//********************列表拖拽排序*************
//     {
//       path: 'dnd-list',
//       component: () => import('@/views/components-demo/dnd-list'),
//       name: 'DndListDemo',
//       meta: { title: 'Dnd List' }
//     },
//     {
//       path: 'drag-kanban',
//       component: () => import('@/views/components-demo/drag-kanban'),
//       name: 'DragKanbanDemo',
//       meta: { title: 'Drag Kanban' }
//     }
   ]
 }

export default componentsRouter
